﻿@using System.Globalization
@using Abp.Configuration
@using Abp.Configuration.Startup
@using Abp.Web.Mvc.Alerts
@using Abp.Web.Security.AntiForgery
@using Partner.Surround.Configuration
@using Partner.Surround.Web.Resources
@inject Partner.Surround.Timing.AppTimes AppTimes
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IMultiTenancyConfig MultiTenancyConfig
@inject IWebResourceManager WebResourceManager
@inject ISettingManager SettingManager
@inject IAlertManager AlertManager
@{
    Layout = null;
    AbpAntiForgeryManager.SetCookie(Context);
    var uiTheme = await SettingManager.GetSettingValueAsync(AppSettingNames.UiTheme);
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="description" content="">
    <meta name="author" content="SAssassin">
    <link rel="shortcut icon" href="~/favicon.ico">
    <title>Surround</title>

    <link href="~/fonts/roboto/roboto.css" rel="stylesheet" asp-append-version="true" />
    @*<link href="~/fonts/material-icons/materialicons.css" rel="stylesheet" asp-append-version="true" />*@
    @*<link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />*@
    @*<link href="~/lib/bootstrap-select/dist/css/bootstrap-select.css" rel="stylesheet" asp-append-version="true" />*@
    <link href="~/lib/toastr/toastr.css" rel="stylesheet" asp-append-version="true" />
    @*<link href="~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css" rel="stylesheet" asp-append-version="true" />*@
    @*<link href="~/lib/font-awesome/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />*@
    @*<link href="~/lib/Waves/dist/waves.css" rel="stylesheet" asp-append-version="true" />*@
    <!--预设css3动画库-->
    @*<link href="~/lib/animate.css/animate.css" rel="stylesheet" asp-append-version="true" />*@
    @*<link href="~/css/materialize.css" rel="stylesheet" asp-append-version="true" />*@
    @*<link href="~/css/style.css" rel="stylesheet" asp-append-version="true">*@
    @*<link href="~/css/themes/all-themes.css" rel="stylesheet" asp-append-version="true" />*@
    <link href="~/view-resources/Views/Shared/_Layout.css" rel="stylesheet" asp-append-version="true" />

    <link rel="stylesheet" href="~/css/font.css" media="all" asp-append-version="true">
    <link rel="stylesheet" href="~/css/xadmin.css" media="all" asp-append-version="true">

    @RenderSection("styles", required: false) 
    <script type="text/javascript">
        var abp = abp || {};
        abp.appPath = '@ApplicationPath';
    </script>
</head>
<body class="index">
    @RenderBody()

    <script src="~/lib/layui/layui.js" charset="utf-8" asp-append-version="true"></script>
    <script src="~/js/xadmin.js" asp-append-version="true"></script>
    <script src="~/lib/lodash/dist/lodash.min.js" asp-append-version="true"></script>

    <!--提供了json的序列化和反序列化方法-->
    <script src="~/lib/json2/json2.js" asp-append-version="true"></script>
    <script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
    <!--时间格式化处理利器-->
    <script src="~/lib/moment/min/moment-with-locales.js" asp-append-version="true"></script>
    <!--jquery校验-->
    <script src="~/lib/jquery-validation/dist/jquery.validate.js" asp-append-version="true"></script>
    <!--jQuery遮罩插件-->
    @*<script src="~/lib/blockUI/jquery.blockUI.js" asp-append-version="true"></script>*@
    <!--消息提示插件-->
    <script src="~/lib/toastr/toastr.js" asp-append-version="true"></script>
    <!--弹窗口插件-->
    <script src="~/lib/sweetalert/dist/sweetalert.min.js" asp-append-version="true"></script>
    <!-- 加载动画插件-->
    @*<script src="~/lib/spin.js/spin.js" asp-append-version="true"></script>*@
    @*<script src="~/lib/spin.js/jquery.spin.js" asp-append-version="true"></script>*@
    <!--滚动条插件-->
    @*<script src="~/lib/jquery-slimscroll/jquery.slimscroll.js" asp-append-version="true"></script>*@
    <!--点击效果插件-->
    @*<script src="~/lib/Waves/dist/waves.js" asp-append-version="true"></script>*@
    <!--桌面通知库-->
    <script src="~/lib/push.js/push.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script>
    @*<script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script>*@
    @*<script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script>*@
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script>
    @*<script src="~/js/admin.js" asp-append-version="true"></script>*@
    @*<script src="~/js/main.js" asp-append-version="true"></script>*@
    @*<script src="~/view-resources/Views/Shared/_Layout.js" asp-append-version="true"></script>*@
    @if (CultureInfo.CurrentUICulture.Name != "en")
    {
        <script src="~/lib/jquery-validation/src/localization/messages_@Html.Raw(CultureInfo.CurrentUICulture.Name.Replace("-", "_") + ".js")" asp-append-version="true"></script>
    }

    <script>
    // Localizing momentjs
    moment.locale('@CultureInfo.CurrentUICulture.Name');
    </script>

    @WebResourceManager.RenderScripts()

    @RenderSection("scripts", required: false)
</body>
</html>
